#if WINDOWS_PHONE71
using System.Collections.Generic;

namespace WindowsPhoneMVC.Framework
{
    public class AppConnectParameters
    {
        private readonly IDictionary<string, string> queryString;

        public AppConnectParameters(IDictionary<string, string> queryString)
        {
            this.queryString = queryString;
        }

        public string PlaceName { get { return queryString["PlaceName"]; } }
        public decimal? PlaceLatitude { get { return queryString["PlaceLatitude"] == null ? (decimal?)null : decimal.Parse(queryString["PlaceLatitude"]); } }
        public decimal? PlaceLongitude { get { return queryString["PlaceLongitude"] == null ? (decimal?)null : decimal.Parse(queryString["PlaceLongitude"]); } }
        public string PlaceAddress { get { return queryString["PlaceAddress"]; } }

        public string Category { get { return queryString["Category"]; } }
        public string[] Categories { get { return Category == null ? new string[0] : Category.Split(','); } }
    }
}
#endif